<div id="cultb">
    <table width="100%" class="table  table-bordered ">
        <thead>
            <tr>
                <th>课程名称</th>
                <th>学习内容</th>
                <th>学习时间</th>
                <th>状态</th>
            </tr>
        </thead>
        <tbody>
            {volist name="data" id="vo"}
            <tr id="no-{$vo.cos_id}">
                <td>{$vo.cos_title}</td>
                <td>
                    <?php $con = unserialize($vo['cos_content']); ?>
                    <?php foreach($con as $key=>$v){ ?>
                    <a href="/index.php/home/learn/read?id=<?php echo $key ?>" target="_blank" class="label label-primary"><?php echo $v ?></a>
                    <?php } ?>
                    
                </td>
                <td>
                    <span class="label label-default"> {$vo.cos_begin}</span>-<span class="label label-info">{$vo.cos_close}</span>
                </td>
                <td>
                    {switch name="vo.cos_state"}
                    {case value="0"}<div class="label label-success"><span class="fa fa-flag"></span></div>{/case}
                    {case value="1"}<div class="label label-danger"><span class="fa fa-power-off"></span></div>{/case}
                    {/switch}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
